
package me.zhengjie.service.dto;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @website https://el-admin.vip
* @description /
* @author IQW
* @date 2022-07-03
**/
@Data
public class AppWorkGps2Dto implements Serializable,Comparable<AppWorkGps2Dto>{

    /** 时间戳 */
    private Long time;

    /** 经度 */
    private Double lon;

    /** 纬度 */
    private Double lat;

    @Override
    public int compareTo(AppWorkGps2Dto o) {
        //升序排序
        return this.time.intValue()-o.time.intValue();
    }
}